package com.example.demo.mapper;

import com.example.demo.entity.ImageClass;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

@Mapper
public interface ImageClassMapper {
    int insertImageClass(ImageClass imageClass);
    int updateImageClass(ImageClass imageClass);
    int deleteImageClass(Integer id);
    List<Map<String, Object>> selectImageClassList(Map<String, Object> params);
    ImageClass selectImageClassById(Integer id);
    ImageClass selectImageClassByName(String name);
    
    List<Map<String, Object>> selectImageListByClassId(@Param("classId") Integer classId, @Param("serverUrl") String serverUrl);
}
